package org.styx.demo.entity;

import lombok.Data;
import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Table(name="tb_usr")
@Data
@EntityListeners(AuditingEntityListener.class)
public class User implements Serializable {
    @Id
    @CreatedBy
    private String id;
    private String userName;
    private String userPwd;
    private String gender;
}
